#ifndef _STRAWGUI_GUI_OBJECT_H_
#define _STRAWGUI_GUI_OBJECT_H_

#include "sConfig.h"
#include "sSaveable.h"

namespace sgui
{
	class sGUI;

	class sGUIObject : public sSaveable
	{
	private:
		sGUI&			m_gui;
		ID				m_id;
	public:
		sGUI&	getGui();
		const sGUI&	getGui() const;
		ID		getID() const;

		void save(db::Record& file) const;
		void load(const db::Record& file);
		void clear();

		sGUIObject(sGUI& gui);
		~sGUIObject();
	};

};

#endif